#ifndef __BSP_KEY_H_
#define __BSP_KEY_H_


#include "at32project_header.h"



void bsp_stream_ctrl_pin_init(void);
uint8_t bsp_stream_key_scan(void);

void bsp_hid_function_pin_init(void);
uint8_t bsp_hid_key_scan(void);

#define BIT(n)  (1UL << (n))

#define BTN1_BIT 0
#define BTN2_BIT 1
#define BTN3_BIT 2
#define BTN4_BIT 3


#define BTN1_MSK BIT(BTN1_BIT)
#define BTN2_MSK BIT(BTN2_BIT)
#define BTN3_MSK BIT(BTN3_BIT)
#define BTN4_MSK BIT(BTN4_BIT)

#define BTN_ALL_MASK  (BTN1_MSK | BTN2_MSK | BTN3_MSK|BTN4_MSK)

#endif

